package com.example.entity.dto;

public class UserDTO {
    private String UID; //UID
    private String username; //用户名
    private String name; //姓名
    private String avatar; //头像
    private String role; //角色标识
    private String address; //地址

    // 无参构造函数
    public UserDTO() {
    }

    // 全参构造函数，方便直接创建DTO对象时初始化所有属性
    public UserDTO(String UID, String username, String name, String avatar, String role, String address) {
        this.UID = UID;
        this.username = username;
        this.name = name;
        this.avatar = avatar;
        this.role = role;
        this.address = address;
    }

    // Getter和Setter方法
    public String getUID() {
        return UID;
    }

    public void setUID(String UID) {
        this.UID = UID;
    }



    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    // 重写toString方法，方便打印和调试
    @Override
    public String toString() {
        return "UserDTO{" +
                "UID='" + UID + '\'' +
                ", username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", role='" + role + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
